﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Xml.Serialization;

namespace XEvents.Library
{
    [XmlRoot("Targets")]
    public class TargetCollection : List<Target>
    {
        public TargetCollection(IEnumerable<Target> tgts)
            : base(tgts)
        { }

        public Target  this[string name]
        {
            get { return this.ToDictionary(n => n.Name, n => n)[name]; }
        }
    }
}
